from django.contrib import admin
from django.urls import path, include
from django.urls import re_path
from django.conf import settings  # 新增导入，为了打开路由
from django.conf.urls.static import static  # 同上

urlpatterns = [
    path('user/', include('user.urls')),
    path("admin/", admin.site.urls),
]
# 允许所有的media文件被访问
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

